package de.clapp.panels;

import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;

import javax.swing.JPanel;

@SuppressWarnings("serial")
public class MyTabbedPanel extends JPanel
{
  @Override
  public void paintComponent(Graphics g)
  {
      super.paintComponent(g);
      
      Graphics2D g2d = (Graphics2D) g;
      g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
      GradientPaint gp = new GradientPaint(0,0, Color.WHITE, 0, this.getHeight(), new Color(209,228,252));
      g2d.setPaint(gp);
      g2d.fillRect(0, 0, this.getWidth(), this.getHeight());
  }
}
